#include <stdio.h>

int cycle_length(int n){
	int c = 1;
	while(n != 1){
		if (n%2 == 0){
			n = n/2;
		}
		else{
			n = 3*n+1;
		}
		c++;
	}
	return c;
}

int max_cycle_length(int n, int m){
	int mm = 0;
	int i;
	for(i = n; i<=m; i++){
		int c = cycle_length(i);
		if(mm < c){
			mm = c;
		}
	}
}

int main(){
	int n, m;
	while(scanf("%d %d\n", &n, &m) != EOF){
		
		printf("%d %d %d\n", n, m, 0);
	}
	return 0;	
}
